import junit.framework.TestCase;
import org.junit.Test;

public class PositionTest extends TestCase {
    @Test
    public void testEquals() throws Exception {
        Position firstPosition = new Position(1, 1, 10, 10);
        Position secondPosition = new Position(1, 1, 10, 10);
        assertEquals(true, firstPosition.equals(secondPosition));
    }

    @Test
    public void testChangePosition() throws Exception {
        Position firstPosition = new Position(3, 3, 10, 10);
        firstPosition.changePosition(Direction.UP_RIGHT, 2);
        assertEquals(4, firstPosition.getX());
        assertEquals(1, firstPosition.getY());
    }
}
